<%-- 
    Document   : AccountRegistrationStatus
    Created on : Sep 2, 2011, 1:25:13 AM
    Author     : James
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList, BusinessLogic.Constants"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Lingua123 - Your shortcut to a new language</title>
        <link rel="stylesheet" href="../customer/main_style_sheet.css" />
        <script type="text/javascript" src="../customer/script/Utilities.js"></script>
        <script type='text/javascript' src='../jQuery/jquery-1.6.1.min.js'></script>
        <script type="text/javascript">
            <!--
            window.onload = showPage('Login', 'login_panel');
            //-->
        </script>
    </head>
    <body>
        <div id="wrapper">
            <h1>Lingua123</h1>
            <div id="nav">
                <a href="Redirect?page=CourseRegistration">Course Registration</a>
                <a href="Redirect?page=search&target=ad">About Us</a>
                <a href="Redirect?page=about_us">Our Languages</a>
                <a href="Redirect?page=contact">Support</a>
            </div>
            <div id="body">
                <div id="body-top">
                    <div id="body-bot">
                        <div id="welcome">
                            <img src="../customer/images/handshake.jpeg" width="276" height="238" alt="Pic 1" />
                        </div>
                        <div id="login_panel"></div>
                        <div id="content">
                            <%
                                ArrayList data = (ArrayList) request.getAttribute("data");
                                int result = ((Integer) data.get(0)).intValue();
                                if (result == Constants.STATUS_SUCCESSFUL) {
                            %>
                            <p class="white" align="middle">
                                Thank you for registering with Lingua123.<br/>Please check your email and proceed to activate your account.<br/>
                                If you're not redirected to Homepage in 4s, please click <a href="http://localhost:8080/portal/public/">here</a>.
                            </p>
                            <script type="text/javascript">
                                $(document).ready(function() {
                                    setTimeout(window.location.replace("http://localhost:8080/portal/public/"), 4000);
                                });
                            </script>
                            <%
                                } else {
                            %>
                            <p class="white" align="middle">
                                A user with this IC number, Username or email has already registered with us.<br/>
                                If you forgot your password, please click <a href="http://localhost:8080/portal/public/Forgot?target=password">here</a>.<br/>
                                Otherwise, if you're not redirected to Homepage in 6s, please click <a href="http://localhost:8080/portal/public/">here</a>.
                            </p>
                            <script type="text/javascript">
                                $(document).ready(function() {
                                    setTimeout(window.location.replace("http://localhost:8080/portal/public/"), 6000);
                                });
                            </script>
                            <%
                                }
                            %>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>


